package com.qinyeit.serviceapp.exception;

/**
 * Created by MFY on 2016/3/3.
 */
public class BusinessRunTimeException extends RuntimeException{


    private int errorCode;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessRunTimeException(int errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessRunTimeException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public BusinessRunTimeException(String message, Throwable cause, int errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }
}
